<template>
  <div class="goods">
    <BScroll class="BScroll_category" :bounce="false">
      <category @itemClick="itemClick"/>
    </BScroll>
    <BScroll class="BScroll_goodsList">
      <goods-list :ouccerrindex="ouccerrindex"/>
    </BScroll>
    <buttom-nav/>

  </div>
</template>

<script>
  import {getdata} from "../../network/request";
  import category from "./Children/category";
  import goodsList from "./Children/goodsList";
  import buttomNav from "./Children/buttomNav";
  import BScroll from "../../components/common/scroll/BScroll";


  export default {
    name: "goods",
    components:{
      category,
      goodsList,
      buttomNav,
      BScroll
    },
    data(){
      return{
        ouccerrindex:0,
      }
    },
    methods:{
      itemClick(index){
        this.ouccerrindex=index;
      }
    },


  }
</script>

<style scoped>
  .goods{
    display: flex;
  }
  .BScroll_category{
    position: absolute;
    top: 170px;
    left: 0;
    bottom: 44px;
    overflow: hidden;
    width: 20%;

  }
  .BScroll_goodsList{
    position: absolute;
    top: 170px;
    right: 0;
    bottom: 44px;
    overflow: hidden;
    width: 80%;
  }





</style>